libxenstat: honour XEN_RUN_DIR
authorWei Liu <wei.liu2@citrix.com>
Mon, 11 Jul 2016 17:28:08 +0000 (18:28 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 20 Jul 2016 15:08:14 +0000 (16:08 +0100)
commitdedb221889dbdd96f1d3c1155c3eb492d329bb53
tree36288c61a7ce14faaca568918e807862daba6638
parent56f9010bfa16eb7772cacbc40a669d856444e407
libxenstat: honour XEN_RUN_DIR

This is because libxl uses XEN_RUN_DIR to generate the socket path for
libxenstat while libxenstat itself uses hard-coded path, which is not
necessarily the same path as XEN_RUN_DIR.  The default configuration
happened to work because XEN_RUN_DIR defaulted to /var/run/xen, which
matched the hard-coded path.

We should make libxenstat use XEN_RUN_DIR so that it works with
non-default configuration.

Generate a _paths.h because it is required to make this change work.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
.gitignore
tools/xenstat/libxenstat/Makefile
tools/xenstat/libxenstat/src/xenstat_qmp.c